<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
  
    <title> Admin-Manage修改</title>
	<style>
	
	
	</style>
   
    <link href="css/font-awesome.min.css" rel="stylesheet">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/templatemo-style.css" rel="stylesheet">
    
   

  </head>
  <body>  
    <!-- 左列页面 -->
    <div class="templatemo-flex-row">
      <div class="templatemo-sidebar">
        <header class="templatemo-site-header">
          <div class="square"></div>
          <h1>Admin-后台</h1>
        </header>
        <div class="profile-photo-container">
          <div class="profile-photo-overlay"></div>
        </div>     

        <div class="mobile-menu-icon">
            <i class="fa fa-bars"></i>
          </div>
        <nav class="templatemo-left-nav">          
          <ul>
             <li><a href="IndexQueryServlet"><i class="fa fa-home fa-fw"></i>首页</a></li>
            <li><a href="maps.jsp" class="active"><i class="fa fa-map-marker fa-fw"></i>志愿者Maps</a></li>
            <li><a href="UserGuanServlet"><i class="fa fa-users fa-fw"></i>管理用户</a></li>
            <li><a href="MoneyQueryservlet"><i class="fa fa-users fa-fw"></i>管理捐款</a></li>
            <li><a href="YuanQueryesServlet"><i class="fa fa-users fa-fw"></i>管理原因</a></li>
            <li><a href="ShiQueryesServlet"><i class="fa fa-users fa-fw"></i>管理事件</a></li>
            <li><a href="TuQueryServlet"><i class="fa fa-users fa-fw"></i>陈列馆管理</a></li>
            <li><a href="login.jsp"><i class="fa fa-eject fa-fw"></i>退出</a></li>
          </ul>  
        </nav>
      </div>
      <!-- 主要内容 --> 
      <div class="templatemo-content col-1 light-gray-bg">
        <div class="templatemo-top-nav-container">
          <div class="row">
            <nav class="templatemo-top-nav col-lg-12 col-md-12">
              <ul class="text-uppercase">
               <li><a href="IndexQueryServlet" class="active">首页</a></li>
                <li><a href="maps.jsp">志愿者地图</a></li>
                <li><a href="UserGuanServlet">管理用户</a></li>
                 <li><a href="MoneyQueryservlet">管理捐款</a></li>
                 <li><a href="YuanQueryesServlet">管理原因</a></li>
                 <li><a href="ShiQueryesServlet">管理事件</a></li>
                <li><a href="login.jsp">退出</a></li>
              </ul>  
            </nav> 
          </div>
        </div>
        <div class="templatemo-content-container">                    
          </div>
                    <h2 style="text-align: center;">陈列馆图片管理</h2>
          <div class="templatemo-content-widget no-padding">
            <div class="panel panel-default table-responsive">
              <table class="table table-striped table-bordered templatemo-user-table">
                <thead>
                  <tr>
                  
                    <td><a href="" class="white-text templatemo-sort-by">ID<span class="caret"></span></a></td>
                    <td><a href="" class="white-text templatemo-sort-by">图片路径 <span class="caret"></span></a></td> 
                  	<td><a href="" class="white-text templatemo-sort-by">操作 <span class="caret"></span></a></td>
                  </tr>
                </thead>
                <tbody>
               <c:forEach items="${requestScope.allTu}" var="donation">
              	<form action="updeTuServlet" method="POST">
				    <tr>
				        <td><input type="text" id="donationId_${donation.id}" name="donationId" value="${donation.id}" class="form-control"  readonly></td>
				        <td><input type="text" id="donationName_${donation.id}" name="donationLu" value="${donation.img}" class="form-control" ></td>
				        <td><input type="submit" id="myupdet" value="修改信息" class="templatemo-edit-btn"></td>
				    </tr>
				</form>
</c:forEach>
                </tbody>
              </table>    
            </div>                          
          </div>
         
          <div class="templatemo-content-widget no-padding">
            <div class="panel panel-default table-responsive">
            <form action="InserTuSevlet" >
              <table class="table table-striped table-bordered templatemo-user-table">
                <thead>
                  <tr>
                    <td><a href="" class="white-text templatemo-sort-by">添加图片路径 <span class="caret"></span></a></td> 
                    <td>操作1</td>
                    <td>操作2</td>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><input id="ocps" name="names" type="text" class="form-control" ></td>
                     <td><button type="button" id="resetss" class="templatemo-blue-button">重置</button></td>
                    <td><button type="submit" class="templatemo-blue-button">添加</button></td>
                  </tr>                       
                </tbody>
              </table> 
              </form>   
            </div>                          
          </div>                    
          
          <div class="templatemo-flex-row flex-content-row">
            <div class="col-1">
              <div class="panel panel-default margin-10">
                <div class="panel-heading"><h2 class="text-uppercase">查询列表</h2></div>
                <div class="panel-body">
                  <form action="#" id="querys" class="templatemo-login-form">
                  <div class="form-group">
                  <div class="form-group">
                      <label for="inputEmail">id</label>
                      <input type="text" class="form-control" name="id" id="id" placeholder="Enter ID">
                    </div>
                      <label for="inputocp" id="inputocp">图片路径</label>
                      <input type="text" class="form-control" id="name" name="name" placeholder="Enter 只需输入x.xxx">
                    </div>               
                    <div class="form-group">
                        <div class="checkbox squaredTwo">
                        </div>            
                    </div>
                    <div class="form-group">
                     <button type="button" id="queryMoney" class="templatemo-blue-button" >图片查询</button>
                      <button type="button" id="res" class="templatemo-blue-button">重置</button>
                    </div>
                  </form>
                </div>                
              </div>              
            </div>
            
          </div> <!--信息显示 -->
          
                   
          <footer class="text-right">
           <!--  <p>Copyright &copy; 2084 Company Name 
            | Designed by <a href="http://www.templatemo.com" target="_parent">templatemo</a></p> -->
          </footer>         
        </div>

    
    <!-- JS -->
    <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>      <!-- jQuery -->
    <script type="text/javascript" src="js/templatemo-script.js"></script>
    <script>
    
   
    $("#res").bind("click",function(){
		 $("#id").val('');
		 $("#name").val('');
		 $("#adds").val('');
		 $("#country").val('');
		 $("#money").val('');
		 $("#phone").val('');
		 $("#inputEmail").val(''); 
    });
    $("#queryMoney").bind("click",function(){
			  $("#querys").attr("action","queryMoneyServlet");
			  $("#querys").submit();
   });	 
    $("#resetss").bind("click",function(){
		 $("#ocps").val('');
		 $("#nameusers").val('');
		 $("#passwords").val('');
		 $("#sexss").val('');
		 $("#cous").val('');
		 $("#eamis").val('');
		 $("#yuan").val(''); 
});
    $("#queryMoney").bind("click",function(){
		  $("#querys").attr("action","queryTuServlet")
		  $("#querys").submit();
});	 


 
    </script>   
  </body>
</html>